﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<fivescomplement.Models.QuestionModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Create</h2>
	

          <% using (Html.BeginForm()) { %>
        <div>
            <fieldset>
                <legend>Create Question</legend>

                     <%: Html.Hidden("CourseID", ViewData["CourseID"])%>
                    <p>Question Type</p>


                    <% List<SelectListItem> ListItems = new List<SelectListItem>();

                           ListItems.Add(new SelectListItem 
                           {
                               Text = "Likert scale", 
                               Value = "1", 
                               Selected = true 
                           }); 
                           ListItems.Add(new SelectListItem 
                           {
                               Text = "Free Response", 
                               Value = "3" 
                           }); 
                        %> 
                        <%: Html.DropDownListFor(model => model.QuestionTypeID, 
                            ListItems) %> 
                <p>Question</p>
                <%: Html.TextAreaFor(m => m.Question, new { @cols = "70", @rows = "6" })%>
                <p>
                    <input type="submit" value="Create" />
                </p>
            </fieldset>
        </div>
    <% } %>




</asp:Content>
